package com.huawang.mdesign.model.service.request;

import com.huawang.business.constants.ParamErrorConstants;
import com.huawang.business.dto.ProjectIdDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class ChangeRelationshipEndsDTO extends ProjectIdDTO{
    @Schema(title = "关系连线id")
    @NotBlank(message = ParamErrorConstants.NO_RELATIONSHIP_ID)
    private String instanceId;

    @NotBlank(message = ParamErrorConstants.NO_SOURCE_ID)
    @Schema(title = "变更后关系来源Id")
    private String sourceId;

    @NotBlank(message = ParamErrorConstants.NO_TARGET_ID)
    @Schema(title = "变更后关系目标Id")
    private String targetId;
}
